@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

.el-dialog__body {
  padding: 20px 20px;
  color: #606266;
  font-size: 14px;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.warn-content {
  background: rgba(66, 185, 131, .1);
  border-radius: 2px;
  padding: 11px;
  word-spacing: .05rem;

  a {
    color: #42b983;
    font-weight: 400;
  }
}

//main-container全局样式
.app-main {
  height: 100%;
  background: #f0f2f5;
}

.app-container {
  padding: 20px;
}

.app-container .el-form--inline {
  background-color: #fff;
  padding: 10px;
}

.app-container .el-form-item--small {
  margin-top: 8px;
  margin-bottom: 8px;
}

.el-avatar {
  display: inline-block;
  text-align: center;
  background: #ccc;
  color: #fff;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 16px;
}

.logo-con {
  height: 60px;
  padding: 13px 0px 0px;

  img {
    width: 135px;
    display: block;
    margin: 0 auto;
  }
}

.basic-info-item {
  line-height: 40px;
  font-size: 14px;
  padding: 0 10px;

  &:nth-child(even) {
    background-color: #F2F6FC;
  }

  .column-name {
    display: inline-block;
    width: 70px;
    text-align: justify;
    color: #111;
    margin-right: 10px;
  }
}

.panel-group {
  margin-top: 2px;

  .chart-card-header {
    .meta {
      color: rgba(0, 0, 0, .45);
      font-size: 14px;
      line-height: 22px;
    }

    .total {
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: break-all;
      white-space: nowrap;
      color: #000;
      margin-top: 4px;
      margin-bottom: 0;
      font-size: 30px;
      line-height: 38px;
      height: 38px;
    }
  }

  .chart-card-content {
    margin-bottom: 12px;
    position: relative;
    height: 46px;
    width: 100%;

    .content-fix {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
    }
  }

  .chart-trend {
    display: inline-block;
    color: rgba(0, 0, 0, .65);
    font-size: 14px;
    line-height: 22px;

    .item-text {
      display: inline-block;
      margin-left: 8px;
      color: rgba(0, 0, 0, .85);
    }

    .up {
      color: #f5222d;

      i {
        font-size: 12px;
        -webkit-transform: scale(.83);
        transform: scale(.83);
        vertical-align: -.125em;
      }
    }

    .down {
      color: #52c41a;

      i {
        font-size: 12px;
        -webkit-transform: scale(.83);
        transform: scale(.83);
        vertical-align: -.125em;

        svg {
          transform: rotate(180deg);
        }
      }
    }
  }

  .chart-card-footer {
    border-top: 1px solid #e8e8e8;
    padding-top: 10px;
    font-size: 14px;

    .field {
      color: rgba(0, 0, 0, 0.65);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin: 0;
    }
  }

  .card-panel-col {
    margin-bottom: 32px;
  }

  .card-panel {
    height: 108px;
    font-size: 12px;
    position: relative;
    overflow: hidden;
    color: #666;
    background: #fff;
    box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .05);

    .icon-people {
      color: #40c9c6;
    }

    .icon-message {
      color: #36a3f7;
    }

    .icon-money {
      color: #f4516c;
    }

    .icon-shopping {
      color: #34bfa3
    }

    .card-panel-icon-wrapper {
      float: left;
      margin: 14px 0 0 14px;
      padding: 16px;
      transition: all 0.38s ease-out;
      border-radius: 6px;
    }

    .card-panel-icon {
      float: left;
      font-size: 48px;
    }

    .card-panel-description {
      float: right;
      font-weight: bold;
      margin: 26px;
      margin-left: 0px;

      .card-panel-text {
        line-height: 18px;
        color: rgba(0, 0, 0, 0.45);
        font-size: 16px;
        margin-bottom: 12px;
      }

      .card-panel-num {
        font-size: 20px;
      }
    }
  }
}

.block-col {
  border-right: 1px solid #eff2f6;
  position: relative;
  width: 1px;
  margin: 0 6px;
  vertical-align: middle;
}

.pg-wrapper {
  padding: 24px 10px;
  background-color: #fff;
}
              
.user-operator {
  padding-left: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  background-color: #fff;
}

.el-dropdown-link {
  cursor: pointer;
  color: #409eff;
}

.el-checkbox.is-bordered.el-checkbox--small {
  padding: 7px 15px 7px 10px;
}

.label-gray {
  color:gray;
  background: #e9f8f3;
}

.label-green {
  color: #30b985;
  background: #e9f8f3;
}

.label-red {
  color: #f87177;
  background: #e9f8f3;
}